package com.itheima.algorithm.recursion;

import javax.print.attribute.standard.OrientationRequested;

/**
 * @author: TylerZhong
 * @description:
 */
public class Factorial {

    public int f(int n){
        if (n == 1) {
            return 1;
        }
        return n * f(n - 1);
    }
}
